import { decode } from "./decode";
import { encode } from "./encode";

export class MsgPack {

    /**
     * 解压
     * @param buffer 
     */
    public static Decode(buffer: ArrayLike<number>| BufferSource): unknown {
        return decode(buffer);
    }

    /**
     * 压缩
     * @param obj 
     */
    public static Encode(obj: unknown): Uint8Array {
        return encode(obj);
    }

}